# -*- coding:utf-8 -*-
# @Time: 2020/9/2 13:50
# @Author: liupengfei
# @File: filters.py

import django_filters

from .models import Coupon


class CouponFilter(django_filters.FilterSet):
    title = django_filters.CharFilter(field_name='title', lookup_expr='icontains')

    class Meta:
        model = Coupon
        fields = '__all__'
